@baseFontSize: 75;
.px2rem(@name,@px) {
  @{name}: @px/@baseFontSize *1rem;
}
.userBox{
  position: absolute;
  width: 100%;
  background-color: rgba(0,0,0,.6);
  z-index: 100;
  top: 80/75rem;
  left: 0;
  li{
    padding-left: 20px;
    height: 30px;
    line-height: 30px;
    list-style: none;
    background:linear-gradient(to right, orange 20%,orangered 100%);
    background: -webkit-gradient(to right, orange 20%,orangered 100%);
    color: #fff;
  }
}
html {
  height: 100%;
  body {
    height: 100%;
    .mainPage {
      height: 100%;
      background: #f6f6f6;
      .content {
        height: 100%;
        padding-top: 1.2rem;
        .searchBar {
          height: 1.2rem;
          background: #ffffff;
          border-bottom: 1px solid #e6e6e6;
          .searchContainer {
            width: 100%;
            height: 100%;
            padding: 0.2rem;
            position: relative;

            #searchText {
              background: #f6f6f6;
              display: block;
              width: 80%;
              height: 0.8rem;
              padding-left: 0.4rem;
              border-radius: 0.4rem ;
            }
            #searchSubmit {
              height: 0.8rem;
              width: 1.5rem;
              z-index: 5;
              position: absolute;
              right: 0.35rem;
              top: 0.2rem;
              background: #ff881d;
              color: white;
              border-radius: 0.4rem;
            }
          }
        }
        .menu {
          background: #ffffff;
          height:170px;
          transition:all 1s;
          overflow:hidden;
          a{
            display:block;
            width:2.5rem;
            float:left;
            text-align: center;
            margin-top:8px;
            margin-bottom: 8px;
            img{
              width:50px;
            }
          }

        }
        .superDiscount {
          margin-top: 5px;

          .superTitle {
            background: linear-gradient(#ffaf47, #ff9000);
            height: 1rem;
            p {
              margin-left: 0.3rem;
              line-height: 1rem;
              font-size: 18px;
              color: #ffffff;
            }
            a {
              display: inline-block;
              float: right;
              img {
                width: 0.5rem;
                margin-top: 0.25rem;
                margin-right: 0.3rem;
              }
            }
          }
          .productList {
            ul {
              li {
                display: block;
                padding: 14px 8px;
                border-bottom: 1px solid #e6e6e6;
                background: #ffffff;
                a {
                  display: block;
                  .item {
                    width: 100px;
                    float: left;
                  }
                  .superDes {
                    padding-left: 8px;
                    overflow: hidden;
                    position: relative;
                    height: 100px;
                    p {
                      font-size: 14px;
                      .productPinkage {
                        color: #ffa62a;
                      }
                    }
                    .source {
                      position: absolute;
                      left: 8px;
                      bottom: 0;
                      color: #a1a1a1;
                    }
                    .comments {
                      position: absolute;
                      bottom: 0;
                      right: 4px;
                      color: #a1a1a1;
                      img {
                        position: absolute;
                        left: -15px;
                      }
                    }
                  }
                }
              }
            }

          }
          .moreDiscountInfo {
            height: 1.7rem;
            background: #F4F4F4;
            .moreInfoBtn {
              display: block;
              height: 1.1rem;
              margin-top: 0.3rem;
              margin-left: 0.3rem;
              margin-right: 0.3rem;
              background: linear-gradient(#ffffff, #f4f4f4);
              border: 1px solid #e6e6e6;
              border-radius: 8px;
              text-align: center;
              line-height: 1.1rem;
            }
          }
        }
        .rankingContainer {
          background: #f4f4f4;
          border-bottom: 1px solid #c4c4c4;
          .brandRanking {
            margin-top: 0.3rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(#ffaf47, #ff9000);
            height: 1rem;
            p {
              margin-left: 0.3rem;
              line-height: 1rem;
              font-size: 18px;
              color: #ffffff;
            }
            a {
              display: inline-block;
              float: right;
              img {
                width: 0.5rem;
                margin-top: 0.25rem;
                margin-right: 0.3rem;
              }
            }
          }
        }
        .bottom {
          background: #f1f1f1;
          .footTop {
            border-bottom: 1px solid #c4c4c4;
            font-size: 14px;
            .logIn {
              display: block;
              width: 3rem;
              height: 1rem;
              text-align: center;
              line-height: 1rem;
              border-right: 1px solid #c4c4c4;
            }
            .register {
              display: block;
              width: 3rem;
              height: 1rem;
              text-align: center;
              line-height: 1rem;
              border-right: 1px solid #c4c4c4;
            }
            .backTop {
              width: 4rem;
              height: 1rem;
              text-align: center;
              line-height: 1rem;
              img {
                width: 15px;
              }
            }
          }
          .footer {
            height: 1.6rem;
            text-align: center;
            padding-top: 0.35rem;
            p:first-child {
              color: #666;
              font-size:12px;
              a:first-child{
                color:red;
              }
            }
            p:last-child{
              color:#666;
            }

          }
        }
      }
    }
  }
}